package com.jellyfishumbrella;

import java.util.ArrayList;

import megamu.mesh.Region;

import org.lwjgl.util.vector.Vector3f;

import com.jellyfishumbrella.GL.Normal;

import quickhull3d.Vector3d;

public class Vertex extends Vector3d {
	public short			glID;
	public boolean		isWater	= false;
	public boolean		isCoast	= false;
	ArrayList<Region>	regions;
	ArrayList<Vertex>	neighbors;
	public boolean		checked	= false;
	public Normal		normal;
	public double		grid	= 0.001;

	public Vertex() {

	}

	public Vertex(double x, double y, double z) {
		super(x, y, z);
		regions = new ArrayList<Region>();
		neighbors = new ArrayList<Vertex>();
	}

	public Vector3f glCoords() {
		return new Vector3f((float) x, (float) y, (float) z);
	}

	public String toString() {
		String str = "";
		str = glCoords().toString();
		return str;
	}
}
